<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<jsp:include page="/usr/themes/default/header.jsp"></jsp:include>

<!-- start #main-->
<div class="col-mb-12 col-8" id="main" role="main">
	<c:forEach var="post" items="${posts}">
		<article class="post" itemscope
			itemtype="http://schema.org/BlogPosting">
			<h2 class="post-title" itemprop="name headline">
				<a itemtype="url" href="${options.siteUrl}/post/${post['cid']}">${post['title']}</a>
			</h2>
			<ul class="post-meta">
				<li itemprop="author" itemscope itemtype="http://schema.org/Person">作者:
					<a itemprop="name"
					href="${options.siteUrl}/author/${post['author']['uid']}"
					rel="author">${post['author']['screenName']}</a>
				</li>
				<li>时间: <time datetime="${post['created']}"
						itemprop="datePublished">${post['created']}</time>
				</li>
				<li>分类: <c:forEach var="category" items="${post['categories']}">
						<span><a
							href="${options.siteUrl}/category/${category['slug']}">${category['name']}</a>|</span>
					</c:forEach>
				</li>
				<li itemprop="interactionCount"><a itemprop="discussionUrl"
					href="${options.siteUrl}/post/${post['cid']}#comments">${post['commentsNum']}
						评论</a></li>
			</ul>
			<div class="post-content" itemprop="articleBody">
				${post['text']}</div>
		</article>
	</c:forEach>
	${pageNav}
</div>
<!-- end #main-->

<jsp:include page="/usr/themes/default/sidebar.jsp"></jsp:include>
<jsp:include page="/usr/themes/default/footer.jsp"></jsp:include>